<%@ page pageEncoding='UTF-8'%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:set var="contextPath" value="#request.get('javax.servlet.forward.context_path')" scope="request" />
<!DOCTYPE html>
<head>
    <title>Prescription Update</title>
    <%-- header --%>
    <jsp:include page="/WEB-INF/content/common/Header.jsp" flush="true"/>
    <script src="${contextPath}/js/prescription/prescription.js"></script>
</head>
<body class="metro home">
	<%-- tob-bar --%>
    <jsp:include page="/WEB-INF/content/common/TopBar.jsp" flush="true"/>
       	
	<div id="main-container" class="body-wrapper">
        <%-- tob-container --%>
    	<jsp:include page="/WEB-INF/content/common/TopContainer.jsp" flush="true"/>
        
    	<div id="body-container">
    		<%-- header-container --%>
       		<s:set var="mode" value="'list'"/>
   			<jsp:include page="/WEB-INF/content/prescription/PrescriptionHeaderContainer.jsp" flush="true"/>
   			
   			<%-- prescription-info-container --%>
       		<div class="patient-info-container">
            	<jsp:include page="/WEB-INF/content/prescription/PrescriptionPatientDetails.jsp" flush="true"/>
           	</div>
	   			
    		<div class="listview-outlook">
            	<s:iterator var="oGuiPrescription" value="%{guiPrescriptionList}">
                	<a href="${contextPath}/prescription/show?id=${oGuiPrescription.prescriptionId}" class="list">
                    	<div class="list-content">
                        	<div class="place-left">
                            	<span class="list-title">${oGuiPrescription.dateString}</span>
                                <span class="list-subtitle">${oGuiPrescription.termString}</span>
                            </div>
                            <div class="place-left" style="margin-left:10px;">
                            	<s:iterator var="oSymptom" value="%{#oGuiPrescription.syptomList}">
                            		<span style="border: 1px solid #DDDDDD; border-radius: 5px; padding: 1px 4px; margin-left: 2px; line-height: 30px; display: inline-block;">${oSymptom.name}</span>
                            	</s:iterator>
                            </div>
                            <br clear="all"/>
                        </div>
                    </a>
                </s:iterator>
            </div>
    	</div>
        
        <%-- bottom-container --%>
    	<jsp:include page="/WEB-INF/content/common/BottomContainer.jsp" flush="true"/>
        
	</div>
    
    <%-- footer-container --%>
    <jsp:include page="/WEB-INF/content/common/FooterContainer.jsp" flush="true"/>
    
</body>
</html>